
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台首页</title>
    <link type="text/css" rel="stylesheet" href="css/base.css" />
    <link type="text/css" rel="stylesheet" href="css/top.css" />
    <link type="text/css" rel="stylesheet" href="css/left.css" />
    <link type="text/css" rel="stylesheet" href="css/right.css" />
    <script src="js/jquery.js"></script>
</head>
<body>
<div id="cont">
    <div id="top">
        <div id="top_a">
            <h1>博客管理系统</h1>
        </div>
        <div id="top_b">欢迎你:  <?php echo session("admin_name")?> <a href="index.php?s=admin/article/quit">推出登录</a></div>
    </div>
    <div id="left">
        <ul>
            <li><a href="index.php?s=admin/category/category_list">分类列表</a></li>
            <li><a href="index.php?s=article/article_list">文章列表</a></li>
            <li><a href="index.php?c=Admin&a=admins">管理员</a></li>
        </ul>
    </div>
    <div id="right">
        <div id="right_a">
            <a href="#">首页</a>&gt;
            <a href="index.php?s=admin/category/category_list">分类列表</a>&gt;
            <a href="index.php?s=admin/article/article_list">文章列表</a>
        </div>
        <div id="right_b">
            <button id="submin">全选</button>
            <a href="javascript:void(0);" id="del">删除选中文章</a>
            <a id="a" href="index.php?s=admin/article/add">增加文章</a>
        </div>
        <div id="right_c">
            <form id="list_from" action="index.php?s=admin/article/omit" method="post">
                <table border="">
                    <tr>
                        <th></th>
                        <th>ID</th>
                        <th>文章标题</th>
                        <th>所属分类</th>
                        <th>发表时间</th>
                        <th>修改时间</th>
                        <th>操作</th>
                    </tr>
                    <?php foreach($cateforyList as $row) : ?>
                    <tr>
                        <td><input type="checkbox" name="checkboxid[]" class="checkbox" value="<?php echo $row["article_id"]; ?>" /></td>
                        <td><?php echo $row["article_id"]; ?></td>
                        <td><?php echo $row["article_title"]; ?></td>
                        <td>
                            <?php echo $row['category_name']?>
                        </td>
                        <td><?php echo date("Y-m-d H:i:s",$row["add_time"]) ; ?></td>
                        <td><?php echo date("Y-m-d H:i:s",$row["update_time"]) ; ?></td>
                        <td><a href="index.php?s=admin/article/update/article_id/<?php echo$row["article_id"]; ?>">编辑</a>
                            <a class="delete" href="index.php?s=admin/article/delete/article_id/<?php echo$row["article_id"]; ?>">删除</a>
                        </td>
                    </tr>
                    <?php endforeach; ?>
                </table>
                <div id="article_render">
                    <?php echo $cateforyList->render();?>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="js/article.js"></script>
</body>
</html>

